import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index.js'
import axios from "axios"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
app.use(router)
app.config.globalProperties.$axios = axios
// 在组件中调用, 调用的时候为 this.$axios
app.mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}